package physical;

/*
 * 提款机类
 * */
public class CashDispenser {
	// 提款机剩余现金
	private int cashDispenserAmount = 10000;
	
	// 出钞
	public void payout(int amount){
		if (cashDispenserAmount >= amount){
			cashDispenserAmount -= amount;
			System.out.println("正在出钞...");
			System.out.println("出钞完毕。");
		}
	}
	
	public CashDispenser() {
		super();
	}



	public int getCashDispenserAmount() {
		return cashDispenserAmount;
	}

	public void setCashDispenserAmount(int cashDispenserAmount) {
		this.cashDispenserAmount = cashDispenserAmount;
	}

}
